package day0721;


import java.util.Scanner;

public class Test9 {
    public static void main(String[] args) {
        //输入 一个  1----7的数，用switch-case结构实现：打印对应的星期单词
        Scanner s=new Scanner(System.in);
        System.out.println("请输入一个1-7的数：");
        int a=s.nextInt();
        switch(a){
            case 1: System.out.println("monday");break;
            case 2:  System.out.println("tuesday");  break;
            case 3:System.out.println("wednesday"); break;
            case 4: System.out.println("thursday"); break;
            case 5:  System.out.println("friday"); break;
            case 6:  System.out.println("saturday"); break;
            case 7:  System.out.println("sunday"); break;
            default: System.out.println("输入的数有误");
        }

    }
}
